package com.hualan.service.impl;

import com.hualan.bean.PanghuShop;
import com.hualan.dao.shopdao.ShopDao;
import com.hualan.dao.shopdao.impl.ShopDaoImpl;
import com.hualan.service.ShopService;

import java.util.HashMap;
import java.util.Map;

public class ShopServiceImpl implements ShopService {
	private ShopDao shopDao;
	@Override
	public PanghuShop getShopById(int id) {
		shopDao = new ShopDaoImpl();
		PanghuShop panghuShopById = shopDao.getPanghuShopById(id);
		return panghuShopById;
	}
	
	@Override
	public Map<String, Object> getShopList(Map<String, String> map) {
		shopDao = new ShopDaoImpl();
		HashMap<String, Object> shops = shopDao.getShops(map);
		return shops;
	}
}
